home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / NeXTGo / Source / ClickCell.m < prev    next >
Text File  |  1993-02-08  |  641b  |  32 lines

  1. #include "comment.header"
  2.  
  3. #import "ClickCell.h"
  4. #import "GoApp.h"
  5.  
  6. #import <appkit/Text.h>
  7. #import <appkit/Font.h>
  8. #import <appkit/Window.h>
  9. #import <appkit/Application.h>
  10.  
  11. #import <stdio.h>
  12.  
  13. @implementation ClickCell
  14.  
  15. -(BOOL) trackMouse:(NXEvent *)theEvent inRect:(const NXRect *)cellFrame ofView:controlView
  16. {
  17.     [NXApp cellClicked:self];
  18.  
  19.     return  YES;   
  20. }    
  21.  
  22. - initTextCell:(const char *)aString
  23. {
  24.     self = [super initTextCell:aString];
  25.     [self setFont:[Font newFont:"Helvetica" size:17]];
  26.     [self setBackgroundGray:NX_LTGRAY];
  27.     [self setBezeled:YES];
  28.     [self setAlignment:NX_LEFTALIGNED];
  29.     return self;
  30. }    
  31. @end
  32.